package entity;

public class Token {

    //单词
    private String word;

    //对应的编码
    private int code;

    public Token(String word, int code) {
        this.word = word;
        this.code = code;
    }

    public String getWord() {
        return word;
    }

    public void setWord(String word) {
        this.word = word;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    @Override
    public String toString() {
        return "Token{" +
                "word='" + word + '\'' +
                ", code=" + code +
                '}';
    }

}
